/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.*;
import java.net.*;
/**
 *
 * @author shuhail
 */
public class URLReader {
    public static void main(String[] args) throws Exception {
    URL sampleURL = new URL("http://www.oracle.com/");
    URLConnection ucon = sampleURL.openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(ucon.getInputStream()));
    
    String inputLine;
    while((inputLine=in.readLine())!=null) {
        
        System.out.println(inputLine);
    }
    }
}
